﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Templates_AboutCE_Default : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (AcmsContext.CurrentPost != null)
            {
                var ctrl = AcmsContext.CurrentPost.FindPostControl("Help Text");
                if (ctrl != null)
                {
                    var prop = ctrl.GetProperties<Acms.AcmsControls.HtmlContentControlProperties>();
                    if (prop != null)
                    {
                        //imgHelp.ToolTip = prop.GetHtml();
                    }
                }
            }
            DataBind();

        }
    }

    public override void DataBind()
    {
        base.DataBind();

        if (AcmsContext.CurrentPost == null)
        {
            html.Text = "HTML CONTENT WILL APPEAR HERE";
        }
    }
}
